package net.gz01.wallet.web.noitfy;


import net.gz01.wallet.web.model.TradeOrder;

/**
 * 后台通知商户
 * @author zhongzhanfeng
 *
 */
public class NotifyReq {
	private String version;
	private String mallOrderNo;
	private String payTime;

	private String respCode;
	private String respMsg;
	private String timestamp;
	private String sign;

	//不在报文体内
	private transient String notifyUrl;

	public NotifyReq(TradeOrder tradeOrder) {
		this.version = "V1.0";
		this.timestamp = System.currentTimeMillis()+"";
		this.mallOrderNo = tradeOrder.getOutOrderNo();
		this.payTime = tradeOrder.getPayTime();
		this.notifyUrl = tradeOrder.getNotifyUrl();
		this.respCode = tradeOrder.getRespCode();
		this.respMsg = tradeOrder.getRespMsg();

	}


	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	public void setCodeAndMsg(String code, String msg){
		this.respCode = code;
		this.respMsg = msg;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}


	public String getMallOrderNo() {
		return mallOrderNo;
	}

	public void setMallOrderNo(String mallOrderNo) {
		this.mallOrderNo = mallOrderNo;
	}

	public String getPayTime() {
		return payTime;
	}

	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}


	public String getRespCode() {
		return respCode;
	}

	public void setRespCode(String respCode) {
		this.respCode = respCode;
	}

	public String getRespMsg() {
		return respMsg;
	}

	public void setRespMsg(String respMsg) {
		this.respMsg = respMsg;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

}
